package com.usian.api.article;

import com.usian.model.article.dto.ArticleHomeDto;
import com.usian.model.article.dto.ArticleDto;
import com.usian.model.article.dto.ArticleInfoDto;
import com.usian.model.article.pojos.ApArticle;
import com.usian.model.common.dtos.ResponseResult;

import java.util.List;

public interface ApArticleControllerApi {

    public ApArticle saveApArticle(ApArticle apArticle);

    /**
     * 加载首页文章
     * @return
     */
    public ResponseResult load(ArticleHomeDto dto);

    /**
     * 加载更多 上拉
     * @return
     */
    public ResponseResult loadMore(ArticleHomeDto dto);

    /**
     * 加载最新 下拉
     * @return
     */
    public ResponseResult loadNew(ArticleHomeDto dto);

    /**
     * 加载文章详情
     * @param dto
     * @return
     */
    public ResponseResult loadArticleInfo(ArticleDto dto);

    ResponseResult loadArticleBehavior( ArticleInfoDto dto);

    List<ApArticle> findArticleList();
}
